home *** CD-ROM | disk | FTP | other *** search
- ; Script to update Wordworth 7 to Wordworth 7.01 - MJ & PB
-
- echo "*NDigita Wordworth 7.01 Update"
- echo "============================*N"
- echo "This will update your copy of Wordworth 7 to version 7.01.*N"
-
- ask "Do you want to continue (Y/N)?"
-
- if warn
- if not exists ENV:Wordworth/WwFonts
- echo "*NERROR: Wordworth does not seem to be installed correctly."
- echo "Re-install Wordworth 7, then run this update again."
-
- ask "*NPress Return to exit."
- Quit
- endIf
-
- cd >ENV:CurrentDir
- type ENV:Wordworth/WwFonts >ENV:FontPath
- cd "$FontPath"
- cd /
- cd >ENV:WwPath
- cd "$CurrentDir"
-
- ; Copy the files
- echo "*N0% 100%"
- copy WwProg "$WwPath"
- echo noline "####"
- copy WwCore.library "$WwPath/WwFiles"
- echo noline "##"
- copy "Drawing Tools" "$WwPath/Modules"
- echo noline "##"
- copy Table "$WwPath/Modules"
- echo noline "##"
- copy Picture "$WwPath/Modules"
- echo noline "##"
- copy TextEffects "$WwPath/Modules"
- echo noline "##"
-
- ; Add a line to the core catalog file
- if exists "$WwPath/catalogs/english"
- echo noline "*N31, January 1998" >>"$WwPath/Catalogs/english/WwCore.catalog"
- endif
- if exists "$WwPath/catalogs/deutsch"
- echo noline "*N31, Januar 1998" >>"$WwPath/Catalogs/deutsch/WwCore.catalog"
- endif
- if exists "$WwPath/catalogs/français"
- echo noline "*N31, Janvier 1998" >>"$WwPath/Catalogs/français/WwCore.catalog"
- endif
-
- echo "#"
- endif
-
- unsetenv >NIL: CurrentDir
- unsetenv >NIL: FontPath
- unsetenv >NIL: WwPath
-
- ask "*NPress Return to exit."
-